package text;

import org.junit.Test;

import java.util.Arrays;
import java.util.Random;

public class Text{
    /**
     * 测试
     */
    @Test
    public void text(){
        String[] A = {"Welcome", " to", " my", " class"};
        Arrays.stream(A).forEach(System.out::print);
        Arrays.stream(A).forEach(x -> System.out.printf(x));
    }

    @Test
    public void randomText(){

        Random random = new Random();
        Double num = random.nextDouble();
        System.out.printf(String.valueOf(num));

    }
}
